package com.tom.springframework.test.bean;

/**
 * @author zx
 * @date 2024-11-05 12:40
 */
public class UserService {
    private String name;

    public UserService(){}

    public UserService(String name){
        this.name = name;
    }
    public void queryUserInfo(){
        System.out.println("查询用户信息"+getName());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
